php forum
php mysql forum
php mysql smarty
 
Topic Options
#246623 - 05/15/03 02:28 PM [html] Open link in new window at specified size
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
Ok, this is a question and not a tip, if someone provides the answer, then it will be a tip <img src="/forum/images/graemlins/laugh.gif" alt="" /><br /><br />Anyway, I know how to make a link open up to a new window using _blank. But rather than the new window just being the default size, how do I specify a size? I know this is done on a million sites since most of the popups you receive are done this way. <br /><br />can it be done in HTML or do you need javascript or something to accomplish this?

Top
#246624 - 05/15/03 08:08 PM Re: [html] Open link in new window at specified size [Re: palmen]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1966
Loc: Sweden, Stockholm
Can't be done with just html unfortunately. This is how it is done with javascript:<br /><br />
Code:
<br />  &lt;script language="javascript"&gt;<br />   function openNewWindow(url) {<br />    window.open(url,'newPage','scrollbars=no,resizable=no,width=400,height=400');<br />   }<br />  &lt;/script&gt;<br /><br />  &lt;a href="javascript:openNewWindow('newpage.html');"&gt;Open new window at 400 x 400&lt;/a&gt;<br />
_________________________
/Gardener | Complete list of my mods

Top
#246625 - 05/15/03 08:11 PM Re: [html] Open link in new window at specified size [Re: c0bra]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
excellent, that is what I was looking for <img src="/forum/images/graemlins/smile.gif" alt="" /> Thanks.

Top
#246626 - 05/20/03 09:53 AM Re: [html] Open link in new window at specified size [Re: palmen]
slayer60 Offline
Junior Member

Registered: 06/14/03
Posts: 1185
Loc: New Boston, NH
Here's another way to do it.<br />
Code:
<br />&lt;a href="javascript: void(0)" onclick="window.open('http://www.ubbdev.com/forum/pals/shoutdisplaypal.php','shoutboxpal','width=200,height=400,top=100,left=150,screenX=1,screenY=1,scrollbars=yes,resizable=yes');"&gt;Shout Box&lt;/a&gt;<br />
<br /><br />As you can see, I pilfered that from the IIP page. I test it in both a .php file and a .html file. So that is another way to do it.

Top



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks